#【随机数】生成1-10随机数
summon minecraft:area_effect_cloud ~ ~1 ~ {Tags:["SystemRandom"],Age:0,Color:0}
execute store result score Random System run data get entity @e[type=area_effect_cloud,tag=SystemRandom,limit=1] UUID[0]
scoreboard players operation Random System %= RandomMax System
execute if score Random System matches ..0 run scoreboard players set Random System 1
kill @e[type=area_effect_cloud,tag=SystemRandom]
# 获取随机数：scoreboard players get Random System